package edu.hcnu.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component

// 负责 properties  注入
@PropertySource("classpath:application.properties")
public class Computer {
    @Value("${computer.cpu}")
    private String cpu;
    @Value("${computer.mem}")
    private String mem;
}
